package com.ten.course.fegin;

import com.ten.common.core.entity.TbMember;
import com.ten.common.core.vo.Result;
import com.ten.course.factory.TbMemberFeignFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：张成（3092211427@qq.com）
 * @date ：Created in 2022/12/2517:47
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "education-member",fallbackFactory = TbMemberFeignFactory.class)
public interface TbMemberFeign {
    @GetMapping("/student/member/getMemberByMobile/{mobile}")
    Result<TbMember> getMemberByMobile(@PathVariable String mobile);
}